<?php
/**
 * Created by JetBrains PhpStorm.
 * User: thrall
 * Date: 4/8/13
 * Time: 9:59 AM
 * To change this template use File | Settings | File Templates.
 */
class EmailForm extends BaseForm {
    public function configure() {
        $this->setWidgets(array(
            'email_from' => new sfWidgetFormInputText(),
            'email_to' => new sfWidgetFormInputText(),
            'email_subject' => new sfWidgetFormInputText(),
            'email_message' => new sfWidgetFormTextarea(),
        ));

        $this->widgetSchema->setLabels(array(
            'email_from' => 'From:',
            'email_to' => 'To:',
            'email_subject' => 'Subject:',
            'email_message' => 'Message:',
        ));
    }
}